<!--!
This file is a part of MediaDrop (https://www.mediadrop.video),
Copyright 2009-2018 MediaDrop contributors
For the exact contribution history, see the git revision log.
The source code contained in this file is licensed under the GPLv3 or
(at your option) any later version.
See LICENSE.txt in the main project directory, for more information.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:i18n="http://genshi.edgewall.org/i18n"
      xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="./master.html" />
<head>
	<title i18n:msg="code">A ${code} Error has Occurred</title>
	<link href="${h.url_for('/styles/error.css')}" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="column">
		<h1>Whoopsadaisy!</h1>
		<py:choose test="code">
			<py:when test="404">
				<p>We can't find this page. The page may have been moved or removed.</p>
				<p>If you typed the address in, check the spelling.</p>
			</py:when>
			<py:otherwise py:replace="Markup(message)" />
		</py:choose>

		<h2>You have a few options:</h2>
		<ol>
			<li i18n:msg="link">Return to the <a href="${h.url_for('/')}">homepage</a>.</li>
			<li i18n:msg="link">Return to the <a href="${h.url_for(controller='/media', action='index')}">media page</a>.</li>
			<li>Fill out an error report below.</li>
		</ol>

		<form action="${h.url_for(controller='errors', action='report')}" method="post" class="form">
			<input py:for="x in vars" id="${x}" name="${x}" value="${vars[x]}" type="hidden" />
			<div>
				<label for="email">Email: (so we can contact you if we find it!)</label>
				<input type="text" class="text" name="email" id="email" />
			</div>
			<div>
				<label for="email">What were you looking for when you got the error?</label>
				<textarea class="textarea" name="description" id="description" rows="8" cols="79" />
			</div>
			<div class="clearfix">
				<button class="mcore-btn f-rgt" type="submit"><span>Submit Error Report</span></button>
			</div>
		</form>

	</div>
</body>
</html>
